for i in selection do
(
	bPos=biped.getTransform i #pos
	cPos=biped.getTransform (i.children)[1] #pos
	bone1=BoneSys.createBone bPos cPos (biped.getTransform $ #rotation).axis
-- 	bone1.pos=biped.getTransform i #pos
-- 	bone1.rotation = biped.getTransform i #rotation
-- 	bone1.length = distance (biped.getTransform i #pos) (biped.getTransform (i.children)[1] #pos)
	
)